{extends file="get_usermod:layouts/main/layout.html"} {block name="content"} {load_language_text section="google_shopping"} {load_language_text section="admin_buttons" name="buttons"}
{if $content.authSuccess}
{$txt.authorization_success}
{/if} {block name="admin_google_shopping_schemes_overview_toolbar"}
{block name="admin_google_shopping_schemes_overview_create_scheme_button"} {$buttons.BUTTON_CREATE} {/block}
{/block} {block name="admin_google_shopping_schemes_overview_table"}

{block name="admin_google_shopping_schemes_overview_table_head"}
{block name="admin_google_shopping_schemes_overview_scheme_table_head_row"}
{block name="admin_google_shopping_schemes_overview_scheme_table_head_name"} {$txt.provider} {/block} {block name="admin_google_shopping_schemes_overview_scheme_table_head_last_export"} | {$txt.last_export} {/block} {block name="admin_google_shopping_schemes_overview_scheme_table_head_actions"} | {/block}
--- | --- | ---
{/block}
{/block} {block name="admin_google_shopping_schemes_overview_table_body"}
{if $content.schemes|count > 0} {foreach from=$content.schemes item=scheme} {block name="admin_google_shopping_schemes_overview_scheme_table_body_row"}
{block name="admin_google_shopping_schemes_overview_scheme_table_body_name"} {$scheme.scheme_name} {/block} {block name="admin_google_shopping_schemes_overview_scheme_table_body_last_export"} | {if $scheme.date_last_export !== '0000-00-00 00:00:00' && $scheme.date_last_export !== '1000-01-01 00:00:00'} {$scheme.date_last_export} {else} - {/if} {/block} {block name="admin_google_shopping_schemes_overview_scheme_table_body_actions"} | {block name="admin_google_shopping_schemes_overview_scheme_action_download"} {if $scheme.date_last_export !== '0000-00-00 00:00:00' && $scheme.date_last_export !== '1000-01-01 00:00:00'} {/if} {/block} {block name="admin_google_shopping_schemes_overview_scheme_action_export"} {/block} {block name="admin_google_shopping_schemes_overview_scheme_action_edit"} {/block} {block name="admin_google_shopping_schemes_overview_scheme_action_delete"} {/block} {block name="admin_google_shopping_schemes_overview_scheme_action_copy"} {/block} {/block}
{/block} {/foreach} {else}
{$txt.no_schemes}
{/if}
{/block}

{/block}
{block name="admin_google_shopping_schemes_overview_empty_table_template"}
{/block} {block name="admin_google_shopping_schemes_overview_delete_modal_include"} {include file="get_usermod:Gambio/GoogleShopping/Admin/Html/modals/delete_scheme_modal.html"} {/block} {block name="admin_google_shopping_schemes_overview_export_modal_include"} {include file="get_usermod:Gambio/GoogleShopping/Admin/Html/modals/export_scheme_modal.html"} {/block}
{/block}